package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 续班表
 * </p>
 *
 * @author min
 * @since 2022-08-23
 */
@TableName("renew_class")
@Data
public class RenewClass implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;


    private Long orderDetailId;

    /**
     * 学校id
     */
    private Long schoolId;

    /**
     * 老师id
     */
    private Long teacherId;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 科目id
     */
    private Long subjectsId;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * 季度
     */
    private Integer quarterNum;

    @TableField(exist = false)
    private String quarterName;

    private Integer diffNum;

    /**
     * 是否算续班人数，0否，1是
     */
    private Integer isRenewPerson;

    /**
     * 续班类型：1春续暑，2暑续秋，3秋续寒，4寒续春
     */
    private Integer type;

    /**
     * 年份
     */
    private Integer yearPart;

    /**
     * 1成功，2报名新生，3转课剩余课时不够
     */
    private Integer status;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    private Integer orderStatus;

    @TableLogic
    private Integer deleted;

    /**
     * created_at
     */
    private LocalDateTime createdAt;

    /**
     * updated_at
     */
    private LocalDateTime updatedAt;

    /**
     * deleted_at
     */
    private LocalDateTime deletedAt;

    private String remark;

    private Integer orderType;

    private String typeName;

    /**
     * 续班的老师id
     */
    private Long renewTeacherId;

    /**
     * 续班的学校id
     */
    private Long renewSchoolId;

    //重置为新生
    @TableField(exist = false)
    private Integer reSetIsnew;

    /**
     * 续班类型
     * 是否属于续班：1是，0否
     */
    @TableField(exist = false)
    private Integer renewType;
}
